﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebChat.Services.PubNubData
{
    public static class PubNubPushNotifier
    {
        public static PubnubAPI pubnub = new PubnubAPI(
            "pub-c-8732a243-e6e0-4535-806e-438e41e5bc8e",               // PUBLISH_KEY
            "sub-c-bb3d3f48-0590-11e3-a005-02ee2ddab7fe",               // SUBSCRIBE_KEY
            "sec-c-NDM2NTgyMDgtZmQ3Yi00ZTEwLTg3MWYtOWVmOTY0YzJjNjg0",   // SECRET_KEY
            true                                                        // SSL_ON?
        );

        public static void PushData(string channel, object data)
        {
            pubnub.Publish(channel, data);
        }
    }
}